/**
 * Class: Dot2D
 *
 * Purpose: 
 *
 * Created: Jan 28, 2010 @ 11:05:46 AM
 * @author Ken Scott
 */
package org.openfantasia.ui.renderers;

import org.openfantasia.ui.PColor;
import org.openfantasia.ui.PFrame;
import org.openfantasia.ui.Renderable;
import org.openfantasia.util.math.DPoint3;

public class Dot3D implements Renderable {

	protected DPoint3 location = new DPoint3(0, 0, 0);

	protected PColor color = PColor.WHITE;

	protected double weight = 1;


	public Dot3D() {
	}


	public Dot3D(DPoint3 location) {
		this.location = location;
	}


	public Dot3D(DPoint3 location, PColor color, double weight) {
		this.location = location;
		this.color = color;
		this.weight = weight;
	}


	public void draw(PFrame frame) {
		frame.pushStyle();
		frame.noFill();
		frame.strokeWeight((float) weight);
		frame.stroke(color);
		frame.point(location);
		frame.popStyle();
	}
}